import React from 'react';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
import App from '@container/app';
import Login from '@container/login';

require.ensure([], function () {
  require('lazysizes');
});

export default () => (
  <BrowserRouter>
    <Switch>
      <Route path='/login' exact component={Login} />
      <Route path='/' component={App} />
    </Switch>
  </BrowserRouter>
)
